<?php slot('title', "参赛佳丽 - ") ?>
<?php slot('area', "{$area}赛区") ?>
<?php use_javascript('pic_show/index') ?>
<!--Search-->
<table width="600" border="0" cellspacing="0" cellpadding="0" summary="" class="s_main">
  <tr>
    <td width="510" class="s_main_left">
    <a href="<?php echo url_for('@contestant') ?>">得票排行</a> <span>|</span> 
    <a href="<?php echo url_for('@contestant?sort=early') ?>">最早报名</a><span>|</span> 
    <a href="<?php echo url_for('@contestant?sort=newest') ?>">最新报名</a></td>
    <form action="<?php echo url_for('@contestant_search') ?>" method="get">
	<td width="214" align="right">搜索你要查找的选手：</td>
	<td width="168" align="right"><input name="query" id="query" value="输入选手姓名" type="text" style="height:20px; line-height:20px;" onfocus="if(this.value=='输入选手姓名') this.value='';" onblur="if(this.value=='') this.value='输入选手姓名';" /></td>
	<input type="hidden" name="area" value="<?php echo $areaslug ?>" id="area" />
    <td width="58" align="right"><input type="submit"  value="搜索" style="width:50px; height:25px;"/></td>
	</form>
  </tr>
</table>
<!--Content-->



<div class="jl_top">
   <div class="home_cont3_top"><span class="ft8"><span class="ft9">参赛佳丽</span></span></div>
</div>
<div class="jl_bottom">
   <ul>
   <form action="<?php echo url_for('contestant_poll') ?>" id="poll" method="post">
   <?php foreach ($contestants as $contestant): ?>
      <li>
	     <a href="<?php echo url_for('@contestant_show?id=' . $contestant->getId()) ?>">
			<img src="<?php printf(sfConfig::get('app_path_contestant_portrait'),$contestant->getPortrait()) ?>" width="150" height="211" alt="<?php echo $contestant ?>"/>
		 </a>
				<span class="ft11"><?php echo $contestant->getNumber() ?>号 <?php echo $contestant ?></span><span class="ft12">
				<label for="poll_log_contestant_id_<?php echo $contestant->getId() ?>">
              <a href="#poll_log_contestant_id_<?php echo $contestant->getId() ?>" class="ft12">为她加油</a></label></span></li>
	  <?php endforeach ?>
   </ul>
   <div id="poll-form" style="display: none;">
          <?php echo $form->renderGlobalErrors() ?>
          <?php echo $form['contestant_id']->renderError() ?>
          <?php echo $form->renderHiddenFields() ?>
          <div>为<?php //echo $form['contestant_id'] ?>

<ul class="radio_list">
<?php foreach ($contestants as $contestant): ?>
<li><input name="poll_log[contestant_id]" type="radio" value="<?php echo $contestant->getId() ?>" id="poll_log_contestant_id_<?php echo $contestant->getId() ?>" />&nbsp;<label for="poll_log_contestant_id_<?php echo $contestant->getId() ?>"><?php echo $contestant ?></label></li>
<?php endforeach ?>
</ul>
投一票<input type="submit" value="确定" /></div>

        </div>
      </form>
   <div class="clears"></div>
       
	<!--Page Size--> 
	<div class="jl_pagesize">

	<?php include_partial($whichpager.'/pager', array('pager' => $pager,'sort' =>$order, 'route' => 'contestant')) ?> 
	

	</div>


</div> 
